﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="Common.School.Manager.Index" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>纽威网站管理系统 </title>
    <script type="text/javascript" src="/scripts/jquery-1.4.1.min.js"></script>
    <script type="text/javascript" src="/scripts/common.js"></script>
    <script type="text/javascript">
        $.toggleTree = function (ico, container) {
            $("#" + ico).toggleClass('clsFd');
            $("#" + ico).toggleClass('opnFd');
            $("#" + container).toggle();
        }
        $.getnav = function (nid, type) {
            $("#ulTab a").removeClass("on");
            nid.className = "on";
            //$("#" + nid).addClass("on");
            $("#leftnav").html(documentmenu(type));
        }
        $.autoheight = function () {
            var fHeight = $("#mainframe").contents().find("body").height();
            if (fHeight < 540) {
                fHeight = 540;
            }
            $("#mainframe").height(fHeight + 20);
        }
        $.currentnav = function () {
            $(".gFd li").click(function () {
                $(".gFd li").each(function () {
                    $(this).removeClass('current');
                });
                $(this).addClass('current');
            });
        }
    </script>
    <link href="/styles/main.css" rel="stylesheet" type="text/css" />
</head>
<body class="gb">
    <div class="gTop" id="dvTop">
        <a href="javascript:;" target="_blank" id="lnkHome">
            <%--<img src="../Files/images/LOGO.png" alt="goodway" class="gLogo" id="imgLogo" border="0" />--%>
        </a>
        <!--页面总导航栏-->
        <div class="gNav">
            <ul id="ulTab">
                <li><a class="on" href="home.aspx" target="mainframe" onclick="$.getnav(this, 'all'); return false;">
                    首页 </a></li>
                <li><a href="javascript:;" onclick="$.getnav(this, 0)">文章 </a></li>
                <li><a href="javascript:;" onclick="$.getnav(this, 1)">栏目 </a></li>
                <li><a href="javascript:;" onclick="$.getnav(this, 2)">图库 </a></li>
                <li><a href="javascript:;" onclick="$.getnav(this, 3)">权限 </a></li>
                <li><a href="javascript:;" onclick="$.getnav(this, 4)">站点 </a></li>
            </ul>
        </div>
    </div>
    <table class="gMain">
        <tr class="gMtr">
            <td class="gLe">
                <%--<div class="gMbtn" id="set_a_line_area3">
                    <a href="javascript:;" class="gWmBtn" title="写信"><b class="hide">写信 </b></a><a href="javascript:;"
                        class="gCmBtn" title="收信"><b class="hide">收信 </b></a>
                </div>--%>
                <div id="leftnav">
                </div>
            </td>
            <td class="gRi" id="divMain">
                <iframe src="home.aspx" id="mainframe" name="mainframe" width="100%;" frameborder="0"
                    scrolling="no" marginwidth="0" marginheight="0" onload="$.autoheight();"></iframe>
            </td>
        </tr>
    </table>
    <script type="text/javascript">
        var setmenu =
        [
            [
                ['文章管理'],
                [
                    ['发表', 'AddProducts.php'],
                    ['管理', 'ModProducts.php'],
                ],
                ['模板管理'],
                [
                    ['添加', 'AddProducts.php'],
                    ['管理', 'ModProducts.php'],
                ],
                ['分类管理'],
                [
                    ['添加', 'ModCategories.php'],
                    ['管理', 'ModCategories.php'],
                ],
                ['自定义属性'],
                [
                    ['管理', 'ModCategories.php'],
                ],
            ],
            [
                ['栏目管理'],
                [
                    ['管理', 'ModContact.php'],
                ],
            ],
            [
                ['图库管理'],
                [
                    ['管理', 'ModContact.php'],
                ],
            ],
            [
                ['用户管理'],
                [
                    ['添加', 'ModSiteImg.php'],
                    ['管理', 'ModSiteImg.php'],
                ],
                ['权限角色管理'],
                [
                    ['管理', 'ModSiteImg.php'],
                ],
            ],
            [
                ['参数配置'],
                [
                    ['管理', 'ModSiteImg.php'],
                ],
                ['搜索优化'],
                [
                    ['搜索引擎登记', 'ModSiteImg.php'],
                ],
            ],
        ];
        jQuery(function ($) {
            $("#leftnav").html(documentmenu('all'));
            $("#mainframe").load(function () {
                $(this).height($(this).contents().find("#content").height());
            });
            $("#ulToolbar_inbox div").mouseover(function () {
                $(this).addClass("on");
            }).mouseout(function () {
                $(this).removeClass("on");
            });
            $(".gFd li").mouseover(function () {
                $(this).addClass("on");
            }).mouseout(function () {
                $(this).removeClass("on");
            });
        });
    </script>
</body>
</html>
